from selenium import webdriver
import time as tm 
from bs4 import BeautifulSoup
from selenium.webdriver.chrome.options import Options

Url = "http://221.233.24.23/eams/login.action"
# submitBtn
user_id = "201603445"
chrome_options = Options()
chrome_options.add_argument('--headless')
chrome_options.add_argument('--disable-gpu')

driver = webdriver.Chrome(chrome_options=chrome_options)
driver.get(Url)


username = driver.find_element_by_id("username")
passwd = driver.find_element_by_id("password")
submit = driver.find_element_by_name("submitBtn")
username.send_keys(user_id)
passwd.send_keys(user_id)
submit.click()

print(driver.page_source)


